﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

/**
 * 创建时间：2014/11/28 16:03:35
 * 作者：yong.blackcore
 * Email：itblackhole@outlook.com
 * QQ：50404503
 */
namespace ComicIsland.Common.Entities.InterfaceJson
{
    [DataContract]
    public class JsonComicChapterInfoBookPartList
    {
        [IgnoreDataMember]
        public bool IsCached { get; set; }

        [IgnoreDataMember]
        public string IsCachedToolTip { get; set; }

        [IgnoreDataMember]
        public string IsCachedColor { get; set; }

        [DataMember(Name = "sourceparturl")]
        public string Sourceparturl { get; set; }

        [DataMember(Name = "msourceparturl")]
        public string Msourceparturl { get; set; }

        [DataMember(Name = "partsize")]
        public double Partsize { get; set; }

        [DataMember(Name = "part_id")]
        public int PartId { get; set; }

        [DataMember(Name = "partnumber")]
        public int Partnumber { get; set; }

        [DataMember(Name = "name")]
        public string Name { get; set; }

        [DataMember(Name = "totalpage")]
        public int Totalpage { get; set; }
    }

    [DataContract]
    public class JsonComicChapterInfo
    {

        [DataMember(Name = "bookPartList")]
        public ObservableCollection<JsonComicChapterInfoBookPartList> BookPartList { get; set; }

        [DataMember(Name = "totalpart")]
        public int Totalpart { get; set; }

        [DataMember(Name = "partVersion")]
        public int PartVersion { get; set; }
    }

    [DataContract]
    public class JsonComicChapter
    {

        [DataMember(Name = "code_msg")]
        public string CodeMsg { get; set; }

        [DataMember(Name = "code")]
        public int Code { get; set; }

        [DataMember(Name = "info")]
        public JsonComicChapterInfo Info { get; set; }
    }
}
